<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Cinema Information System">
        <title><?php echo $cinema_data->name; ?> Print View</title>
        
        <?php echo Asset::js('jquery-1.11.0.min.js'); ?>
        
        <?php echo Asset::js('jquery-ui-1.10.4.min.js'); ?>
        <?php echo Asset::css('jquery-ui-1.10.4.min.css'); ?>
        
        <?php echo Asset::js('bootstrap.min.js'); ?>
        <?php echo Asset::css('bootstrap.min.css'); ?>
        
        <?php echo Asset::css('print.css'); ?>
    </head>
    
    <body>

        <div id="info-box">
            <p>
                Nospiediet <input type="button" class="btn btn-xs btn-success" value="ŠEIT" onclick="window.print();" /> vai CTRL+P, lai izprintētu biļetes !
            </p>
        </div>
        
    <?php
        foreach($reservation_data as $reservation) {
            echo      
                '<div class="ticket-wrapper"><div class="print-row"><div class="content-wrapper left-side"><h3>Filma: </strong>' . 
                            $movie_data->title_lv .
                '</strong></h3></div><div class="content-wrapper right-side"><h4>' .
                            '<img src="/uploads/cinema/'. $cinema_data->logo .'" />' .
                '</h4></div></div><div class="print-row"><div class="content-wrapper left-side"><p>'.
                    'Vārds: <strong>' . $order_data->first_name . '</strong><br>' .
                    'Uzvārds: <strong>' . $order_data->last_name . '</strong><br>' .
                    'Seansa sākums: <strong>' . date('d.m.Y H:i', $show_data->start_time) . '</strong><br>' .
                '</p></div><div class="content-wrapper right-side"><p>'.
                    'Auditorija: <strong>' . $auditorium_data->auditorium_name . '</strong><br>' .
                    'Rinda: <strong>' . $reservation->row . '</strong><br>' .
                    'Sēdvieta: <strong>' . $reservation->seat . '</strong><br>' .
                    'Valoda: <strong>' . __($show_data->language) . '</strong><br>' .
                '<p></div></div><div class="print-row"><div class="content-wrapper left-side"><p>'.
                    '<address>Kinoteātris<strong> "' . $cinema_data->name . '"</strong><br> Adrese: ' . $cinema_data->address . '</address>' .
                '</p></div><div class="content-wrapper right-side"><p>
                    <img alt="testing" src="/assets/barcode/barcode.php?codetype=Code128&size=40&text='. $reservation->id .'" /><br>
                    <span style="font-size: 10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'. $reservation->id .'</span>
                </p></div></div><div class="print-row"></div></div>';
        }
    ?>
        
    </body>
</html>

